package com.service.stock.detail.impl;

import com.mapper.entity.StockCirculationDetail;
import com.mapper.entity.StockCirculationDetailOrg;
import com.service.stock.detail.IStockOrgInstanceToStockDetail;
import org.springframework.stereotype.Component;

/**
 * @author: create by God of SJF
 * @version: v1.0
 * @description: com.service.stockdetail.impl
 * @date:2021/9/16
 */
@Component
public class StockOrgInstanceToOutStockDetail implements IStockOrgInstanceToStockDetail {
    @Override
    public StockCirculationDetail instance(StockCirculationDetailOrg org) {
        StockCirculationDetail detail = new StockCirculationDetail();
        detail.setBarcodeContent(org.get_barcode_content());
        detail.setStatus(org.get_status());
        detail.setOrganizationType(org.get_organization_type());
        detail.setOrganizationCode(org.get_organization_code());
        detail.setOrganizationName(org.get_organization_name());
        detail.setProductCode(org.get_product_code());
        detail.setProductName(org.get_product_name());
        detail.setDealersType(org.get_dealers_type());
        detail.setDealersCode(org.get_dealers_code());
        detail.setDealersName(org.get_dealers_name());
        return detail;
    }
}
